<extend name="Public/base"/>
<block name="sidebar">
    <include file="sidemenu"/>
</block>
<block name="body">
    <div class="main-title">
        <h2>
            QQ客服管理
        </h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn" href="{:U('server_add')}">新 增</a>
        </div>
    </div>
    <!-- 数据表格 -->
    <div class="data-table">
        <table class="">
            <thead>
            <tr>
                <th class="">编号</th>
                <th class="">客服名称</th>
                <th class="">客服QQ号</th>
                <th class="">备注</th>
                <th class="">状态</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
                <volist name="list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.qq_number}</td>
                        <td>{$vo.remark}</td>
                        <td>
                            <eq name="vo.show" value="1">已使用<else/>未使用</eq>
                        </td>
                        <td>
                            <a href="{:U('server_edit',array('id'=>$vo['id']))}">编辑</a>
                            <a href="{:U('server_active',array('id'=>$vo['id'],'show'=>'1'))}" class="confirm ajax-get">启用</a>
                            <a href="{:U('server_active',array('id'=>$vo['id'],'show'=>'0'))}" class="confirm ajax-get">禁用</a>
                            <a href="{:U('server_delete',array('id'=>$vo['id']))}" class="confirm ajax-get">删除</a>
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
    <!-- 分页 -->
    <div class="page">
        {$page}
    </div>
    </div>

</block>